<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<script type="text/javascript">

function setTimeTo1(value){
	$("#filter_and_yearAndMonth1_LE_T").val(value) ;
}
function getLastDay(year,month) {  
 var new_year = year;    //取当前的年份
 var new_month = month++;//取下一个月的第一天，方便计算（最后一天不固定）
 if(month>12)            //如果当前大于12月，则年份转到下一年  
{  
  new_month -=12;        //月份减  
  new_year++;            //年份增  
 }  
 var new_date = new Date(new_year,new_month,1);                //取当年当月中的第一天  
 return (new Date(new_date.getTime()-1000*60*60*24)).getDate();//获取当月最后一天日期  
}  

</script>
<script type="text/javascript">
$(document).ready(function(){
	$("#superiorOrgId").click(function(){
		$(this).parent().find("input").each(function(){
			$(this).val("");
		});
	});
});
</script>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
</head>
<body>
<div class="pageContent">
  <form method="post" action="${path }/resource/dissertationAction!saveDissertation.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);" novalidate="novalidate" class="pageForm required-validate">
  <input type="hidden" name="navTabId" value="${ navTabId }"/>
  <div class="pageFormContent" layoutH="56">
      <div>
       <input type="hidden" name="dissertation.createTime" value="${dissertation.createTime}"/>
	   <input type="hidden" name="dissertation.id" value="${dissertation.id}"/>
	   <input type="hidden" name="dissertation.isDeleted" value="${dissertation.isDeleted}"/>
	   <input type="hidden" name="dissertation.createUserId" value="${dissertation.createUserId}"/>
	    <input type="hidden" name="dissertation.status" value="${dissertation.status}"/>
        <div class="tip"><span>论文基本信息</span></div>
			
			
			
			<p>
				<label>标题：</label>
				<input type="text"   name="dissertation.title" maxlength="70" value="${ dissertation.title }" />
			</p>
			<p>
				<label>作者：</label>
				<input type="text"    name="dissertation.author" maxlength="70" value="${ dissertation.author}" />
			</p>
			<p>
				<label>年份：</label>
				<input type="text" class="wDate required" name="dissertation.disYear" id = "filter_and_yearAndMonth_LE_T" 
				  readonly="readonly" value="${dissertation.disYear }"
				onclick="WdatePicker({dateFmt:'yyyy-MM'})" onchange="setTimeTo1(this.value)" />
			</p>
			<p>
				<label>论文分类：</label>
				<select class="required" name="dissertation.disType" rel="iselect" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10517">
					<option value="${dissertation.disType }">${dissertation.disType }</option>
				</select>
			</p>
			<div class="tip"><span>内容：</span></div>
		  	  	<div>
			  		<textarea class="editor" name="dissertation.content" rows="20" cols="110"   tools="full" skin="vista" 
		  				upImgUrl="${path}/servlet/xheditorUpload?flag=img" upImgExt="jpg,jpeg,gif,png">${dissertation.content }</textarea>
        	</div>	
			 <div class="tip"><span>附件上传：</span></div>	
	 		<p class="attachment">
	          <label>附件：</label>
	          <hpin:attachment name="dissertation.attachment" property="dissertation.attachment" scope="request" idField="dissertation.attachment" appCode="publics" />
	        </p>
	        <div class="tip"><span>备注：</span></div>	
			<p id="reamark" class="nowrap">
				<label>备注：</label>
				<textarea cols="35" rows="2" name="dissertation.remark" maxlength="1000" style="width:570px;">${ dissertation.remark }</textarea>
			</p>
			
		</div>
    <div class="formBar" style="width:98%">
      <ul>
        <li>
          <div class="buttonActive">
            <div class="buttonContent">
              <button type="submit">保存</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="reset">重置</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="button" class="close">关闭</button>
            </div>
          </div>
        </li>
      </ul>
    </div>
    </div>
   <div class="formBar" style="width:98%">
      <ul>
        <li>
          <div class="buttonActive">
            <div class="buttonContent">
              <button type="submit">保存</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="reset">重置</button>
            </div>
          </div>
        </li>
        <li>
          <div class="button">
            <div class="buttonContent">
              <button type="button" class="close">关闭</button>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </form>
  
</div>
 
</body>
</html>